#include "Interface.h"
#include "Controlador.h"

int main (int argc, char* argv[])
{

	/* Test a ser pasado a la parte de tests
	 stringstream testComprimir;
	 ppmcComp compresor(2, testComprimir, 0);
	 string aComp = string("SASAS");
	 aComp+=(char)ENDOFFILE;
	 compresor.comprimir(aComp);

	 testComprimir.clear();
	 stringstream testDescomprimir;
	 ppmcDescomp descompresor(2, testComprimir, testDescomprimir, 0);
	 string text = descompresor.descomprimir();
	 cout << "Texto resultante:" << text << endl;
	 return 0;
	 */

	try
	{
		Interface interface;
		interface.correr();
	}
	catch(exception &e)
	{
		cout << "Error: " << e.what() << endl;
	}
	return 0;
}
